package com.gouaixin.bee.beeframework2.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.gouaixin.bee.beeframework2.R;
import com.gouaixin.bee.beeframework2.model.DialogModel;

/**
 * Created by Administrator on 2015/3/10.
 */
//发信包月界面
public class D_baoyue_aibiActivity extends FragmentActivity {
    Context context = D_baoyue_aibiActivity.this;

    //顶部
    ImageView back;//返回
    TextView title;//标题

    TextView kt01, kt02, kt03, kt04;//立即开通

    String order = "";//订单名
    String price = "";//订单价格


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.b15_faxinbaoyue);


        initView();

        setData();

        setListener();

    }

    private void initView() {

        back = (ImageView) findViewById(R.id.back);
        title = (TextView) findViewById(R.id.title);

        kt01 = (TextView) findViewById(R.id.kt01);
        kt02 = (TextView) findViewById(R.id.kt02);
        kt03 = (TextView) findViewById(R.id.kt03);
        kt04 = (TextView) findViewById(R.id.kt04);

    }

    private void setData() {

    }

    private void setListener() {
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        kt01.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));
            }
        });

        kt02.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));
            }
        });

        kt03.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));

            }
        });

        kt04.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));
            }
        });

    }

    /**
     * 监听返回键
     */
    @Override
    public void onBackPressed() {
//        super.onBackPressed();
//        AbToastUtil.showToast(context, "你点击了返回键");
    }
}
